//
//  SinaHomePictureCell.m
//  MySinaWeiboProjectForOC
//
//  Created by apple on 2016/11/17.
//  Copyright © 2016年 WangChen. All rights reserved.
//

#import "SinaHomePictureCell.h"
#import <UIImageView+WebCache.h>

@interface SinaHomePictureCell ()
@property (weak, nonatomic) IBOutlet UIImageView *pictureIV;
@property (weak, nonatomic) IBOutlet UIImageView *gifIV;

@end


@implementation SinaHomePictureCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
}

-(void)setImageURLStr:(NSString *)imageURLStr{
    
    _imageURLStr = imageURLStr;
    
    self.gifIV.hidden = ![imageURLStr hasSuffix:@"gif"];
    
    [self.pictureIV sd_setImageWithURL:[NSURL URLWithString:self.imageURLStr]];
    
}

@end
